Skip to content

Fix postgres problem #86

Merged
merged 2 commits into from
May 3, 2019
Merged

Fix postgres problem #86

merged 2 commits into from
May 3, 2019

Conversation

donald
Copy link
Collaborator

@donald donald commented May 3, 2019

@herwig reports problems with a manually started postgreSQL server with FATAL: semctl(2588678, 6, SETVAL, 0) failed: Invalid argument appearing in the logfile.

This problem is probably caused by the default setting of RemoveIPC=yes in systemd-logind since systemd v232. See [1] and [2] for related flamewars.

As we already have KillUserProcesses=no, set RemoveIPC=no as well.

Requires systemctl restart systemd-logind after installation.

[1] https://github.com/systemd/systemd/issues/2039
[2] https://github.com/systemd/systemd/issues/4532

donald added 2 commits May 3, 2019 11:29
The default setting of RemoveIPC=yes for systemd-logind creates problems
when non-system users (UID>1000) start daemons, which use System V
semaphores and which should keep running when they log out their
session. This is the case for postgreSQL.

Install systemd-loging drop-in configuration file which sets
`RemoveIPC=no`.
@donald
Copy link
Collaborator Author

donald commented May 3, 2019

I've verified the behavior of logind with a test programm. IPC objects of users with uid>1000 are removed 10 seconds after logout. With the above fix installed, they stay around.

@pmenzel pmenzel merged commit f85e6ad into master May 3, 2019
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants